package com.aco.party.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ResourceBundle;

/**
 * Created by WangShijun on 2016/3/9.
 */
public class ConfigResource {
    private static Logger logger = LoggerFactory.getLogger(ConfigResource.class);
    /**
     * 配置文件
     */
    public final static ResourceBundle config = ResourceBundle.getBundle("config");

    /**
     * @param key 键值
     * @return
     */
    public static String getSystemProperty(String key) {
//        logger.info(String.format("获取key:%s,value：%s",key,config.getString(key)));
        return config.getString(key);
    }
}
